<script setup lang="ts">
import {ref} from "vue";
import {platform} from "@tauri-apps/api/os";

const pf = ref('')
platform().then(value => {
  pf.value=value
  console.log(value)
})
</script>

<template>
<div class="window-container" :class="{macos:pf==='darwin'}">
  <slot></slot>
</div>
</template>

<style scoped lang="scss">
.window-container{
  height: 100%;
  width: 100%;
  background: transparent;
  overflow: hidden;
}
.macos{
  border-radius: 10px;
}
</style>